package com.isoft.c2team3service2.controller;


import com.isoft.c2team3service2.common.Result;
import com.isoft.c2team3service2.entity.PerformanceInformation;
import com.isoft.c2team3service2.service.PerformanceInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 蓝莓
 * @since 2025-09-11
 */
@RestController
@RequestMapping("/perf")
public class PerformanceInformationCollection {

    @Autowired
    PerformanceInformationService performanceInformationService;

    //查询巡演信息
    @GetMapping("/infor")
    public Result<List<PerformanceInformation>> getInformation(){
        return Result.success(performanceInformationService.getInformation());
    }

}
